import java.util.Scanner;

public class getMax {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数:");
        int a = scanner.nextInt();
        System.out.println("请输入第二个整数:");
        int b = scanner.nextInt();
        System.out.println("请输入第三个整数:");
        int c = scanner.nextInt();
        scanner.close();

        int max = getMax(a, b, c);
        System.out.println("最大值:" + max);
    }

    public static int getMax(int a, int b, int c) {
        return Math.max(Math.max(a, b), c);
    }
}
